package org.association.builder_state;

public class ConcreteStateC extends State{

	@Override
	public void methodA() {
		super.context.setCurrentState(Context.CONCRETE_STATE_A);
		super.context.getCurrentState().methodA();
	}

	@Override
	public void methodB() {
		System.out.println("cant't change the state C-B");		
	}

	@Override
	public void methodC() {
		System.out.println("this is method C");
	}

	@Override
	public void methodD() {
		super.context.setCurrentState(Context.CONCRETE_STATE_D);
		super.context.getCurrentState().methodD();
	}

}
